package com.asiainfo.kbisheet.services

import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.CashboxService
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.AutoAuthQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.AutoAuthQueryResult
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.CreateAppRequestQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.CreateAppRequestQueryResult
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.CreateResRequestQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.CreateResRequestQueryResult
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.LocalAuthQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.LocalAuthQueryResult
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.QueryAppOperJKStatusQueryParam;
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.QueryAppOperJKStatusQueryResult;
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.QueryJKStatusByIDQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.QueryJKStatusByIDQueryResult
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.QueryResCmdJKStatusQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.QueryResCmdJKStatusQueryResult
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.ReSendJKPassQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.ReSendJKPassQueryResult
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.RemoteAuthQueryParam
import com.asiainfo.kbisheet.util.yunnan.aaaacashbox.vo.RemoteAuthQueryResult

//BussinessSupportService bussinessSupportService = new BussinessSupportService(new URL("http://10.168.51.217:8010/JKService/webservices/BussinessSupportService?WSDL"))
//
//BussinessSupportServicePortType bussinessSupportServicePortType = bussinessSupportService.getBussinessSupportServiceHttpPort()
//
//String resp = bussinessSupportServicePortType.autoAuth("wangquanbang")
//print resp


CashboxService cashboxService = new CashboxService()
/**
* 5.1	应用资源敏感操作金库状态查询接口
*/
//QueryAppOperJKStatusQueryParam param = new QueryAppOperJKStatusQueryParam(serviceUserName:"123",servicePwd:"123")
//QueryAppOperJKStatusQueryResult result = cashboxService.queryAppOperJKStatus(param)

/**
 * 5.2	系统资源敏感指令金库状态查询接口
 */
//QueryResCmdJKStatusQueryParam param = new QueryResCmdJKStatusQueryParam(serviceUserName:"123",servicePwd:"123")
//QueryResCmdJKStatusQueryResult result = cashboxService.queryResCmdJKStatus(param)

/**
* 5.3	根据金库申请id查询金库状态接口
*/
//QueryJKStatusByIDQueryParam param = new QueryJKStatusByIDQueryParam(serviceUserName:"123",servicePwd:"123")
//QueryJKStatusByIDQueryResult result = cashboxService.queryJKStatusByID(param)

/**
* 6.1	应用资源敏感操作金库申请创建接口
*/
//CreateAppRequestQueryParam param = new CreateAppRequestQueryParam(serviceUserName:"123",servicePwd:"123")
//CreateAppRequestQueryResult result = cashboxService.createAppRequest(param)

/**
* 6.2	系统资源敏感指令金库申请创建接口
*/
//CreateResRequestQueryParam param = new CreateResRequestQueryParam(serviceUserName:"123",servicePwd:"123")
//CreateResRequestQueryResult result = cashboxService.createResRequest(param)

/**
* 7.1	远程授权认证接口
*/
//RemoteAuthQueryParam param = new RemoteAuthQueryParam(serviceUserName:"123",servicePwd:"123")
//RemoteAuthQueryResult result = cashboxService.remoteAuth(param)

/**
* 7.2	现场授权认证接口
*/
//LocalAuthQueryParam param = new LocalAuthQueryParam(serviceUserName:"123",servicePwd:"123")
//LocalAuthQueryResult result = cashboxService.localAuth(param)

/**
* 8	金库口令重发接口
*/
ReSendJKPassQueryParam param = new ReSendJKPassQueryParam(serviceUserName:"123",servicePwd:"123")
ReSendJKPassQueryResult result = cashboxService.reSendJKPass(param)

/**
 * 7.3	自动授权认证接口
 */
//AutoAuthQueryParam param = new AutoAuthQueryParam(serviceUserName:"123",servicePwd:"123")
//AutoAuthQueryResult result = cashboxService.autoAuth(param)
print result